#include <stdio.h>
#include <pthread.h>

void *print(void *p)
{
	int i = 0;
	for( ; i < 100 ; ++i)
	{
		printf("%d ",i);
	}
}


int main()
{
	pthread_t id ;
	pthread_create(&id , 0 , print , 0);
	
	int i = 0;
	for( ; i < 100 ; ++i)
	{
		printf("main = %d\n",i);
	}
	pthread_join(id,0);
	pthread_t id2 = pthread_self();
	printf("id = %u , id2 = %u\n",id , id2);
	return 0;
}
